<?php
class LoginController extends Controller{
	public function index(){
		if(IS_POST){
			if(strtoupper($_POST['code'])	!= $_SESSION['code']){
				$this->error('验证码错误');
			}else{
				$this->success('登录成功',__APP__);
			}
		}
		$this->display();
	}
	/*
	 * 显示验证码
	 */
	 public function code(){
$code =new Code();
$code->ImgCodeShow();
	 }
	 public function show(){
	 	echo 'login show';
	 }
}
?>